package 合成复用原则.classes;

//使用组合而非继承
public class ACar
{
	private AEngine engine;

	public void setEngine(AEngine engine) {
		this.engine = engine;
	}
}
